﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace smforj.common.model
{
    /// <summary>
    /// 基站对象信息
    /// </summary>
    public abstract class BaseModel : IComparable
    { 
        private string _rFID;
        /// <summary>
        /// 图书RFID信息
        /// </summary>
        public string RFID
        {
            get { return _rFID; }
            set { _rFID = value; }
        }

        private DateTime _readTime;

        /// <summary>
        /// 读取时间 yyyy-MM-dd HH:mm:ss
        /// </summary>
        public DateTime ReadTime
        {
            get { return _readTime; }
            set { _readTime = value; }
        }

        public int CompareTo(object obj)
        {
            return this._readTime.CompareTo(((BaseModel)obj)._readTime);
        }
    }
}
